<?php

$db_host = "localhost";
$db_username = "sas";
$db_password = "";
$db_name = "sas";

mysql_connect($db_host, $db_username, $db_password) or die("Can't connect");
mysql_select_db($db_name) or die("No database");

$query = "SELECT studentEmail, name, assignedTeacher, 
assignedClass, classTime, classDate, FROM Students";
$result = mysql_query($query);

while( $student = mysql_fetch_array($result) )
    {
    $to = $student[studentEmail];
    
    $subject = "Field Experience Assignment";
    
    $message = "";
    
    mail($to, $subject, $message);
    }
?>
